<?php
require_once dirname(__FILE__) . '/smarty/Smarty.class.php';
class x_smarty extends Smarty
{
    public function __construct() {
        parent::__construct();
        $this->load_config();
    }
    public function load_config() {
        $third_path = RES_PATH . 'smarty/';
        $this->setCacheDir($third_path . 'cache' . DS);
        $this->setConfigDir($third_path . 'configs' . DS);
        $this->setCompileDir($third_path . 'compile' . DS);
        $this->setTemplateDir($third_path . 'views' . DS);
    }
}